<template>
  <svg :style="{ width, height }">
    <use :xlink:href="baseName + name" :fill="color"></use>
  </svg>
</template>

<script setup lang="ts">
import { ref } from 'vue';
ref;
defineProps({
  baseName: {
    type: String,
    default: '#icon-'
  },
  name: {
    type: String,
    default: 'phone'
  },
  color: {
    type: String,
    default: '#000'
  },
  width: {
    type: String,
    default: '50px'
  },
  height: {
    type: String,
    default: '50px'
  }
});
</script>

<style lang="scss" scoped></style>
